import request from '@/api/myRequest'

// 商户列表数据
function getMerchantaccount() {
  return request({
    url: '/merchantaccount/merchantaccountIndex',
    method: 'GET'
  })
}

// 条件查询商户
function searchList(data) {
  return request({
    url: '/merchantaccount/listByMap',
    method: 'POST',
    data
  })
}

// 添加商户
function addBusiness(data) {
  return request({
    url: '/merchantaccount/save',
    method: 'POST',
    data
  })
}

// 修改商户信息
function updateById(data) {
  return request({
    url: '/merchantaccount//updateById',
    method: 'POST',
    data
  })
}

// 分页功能
function findPage(data) {
  return request({
    url: '/merchantaccount/findPage',
    method: 'POST',
    data
  })
}

export default { getMerchantaccount, searchList, addBusiness, updateById, findPage }

